package com.ruoyi.eqmonitor.smdtv.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.eqmonitor.smdtv.service.ISmdtv2Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "河道")
@RestController
@RequestMapping("/smdtv2")
public class Smdtv2Controller {

    @Resource
    private ISmdtv2Service smdtv2Service;

    /**
     * 获取河道名称
     */
    @ApiOperation("获取河道名称")
    @GetMapping("/getName")
    public AjaxResult getName(){
        return AjaxResult.success(smdtv2Service.getAll());
    }

}
